<div class="eventos">
    <div class="titulo">
        <?php _e("<!--:pt-->Próximas Actividades<!--:--><!--:en-->upcoming Activities<!--:--><!--:es-->Próximas Actividades<!--:-->"); ?>
    </div>

    <?php $limit=4;
    
    $query = new WP_Query("post_type='tribe_events'");?>
    
    <?php $i=0; foreach ($query->get_posts() as $post):
                
            if($i<$limit):
                
                $eventDate=explode(' ',$post->EventStartDate);
                $dayEvent=explode('-',$eventDate[0]);
                
                $monthNum = $dayEvent[1];
                $monthName = date("F", mktime(0, 0, 0, $monthNum, 10));

                ?>
    
                <div class="evento">
                    <div class="icon">
                        <div class="mes"><?php echo $monthName;?></div>
                        <div class="dia"><?php echo $dayEvent[2]; ?></div>
                    </div>
                    <div class="info">
                        <div class="titulo-evento">
                            <a href="<?php echo $post->guid;?>"><?php echo $post->post_title;?></a>
                        </div>
                        <div class="data-evento">
                            <?php echo $post->EventStartDate; ?>
                        </div>
                    </div>
                </div>
    
    <?php endif; $i++; endforeach; ?>
    
    
</div>